package com.xiaow.android.ebook.app.util;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

public class HttpUtils {
	
	public static String  readFromInputStream(InputStream in) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(in));
		StringBuffer sb = new StringBuffer();
		 String content =null;
		 while((content = br.readLine())!=null){
			 sb.append(content);
		 }
		
		return sb.toString();
		
	}
}
